<?php
include_once __DIR__ . '/../autoload.php';
//include_once dirname(dirname(__FILE__)) . '/funciones/basicas.php';
use datos\VendedorDao;
use utiles\Config;
use utiles\SessionUtil;
use utiles\Formato as F;
use utiles\Excel;

$vendedor = $_POST['vendedor'];
$mes = $_POST['mes'];
$ano = $_POST['ano'];  

SessionUtil::start();
SessionUtil::isLogged();
$conexion = Config::conectarPDO();
$vendedorDao = new VendedorDao($conexion);
$result = $vendedorDao->getVentasPorVendedor($vendedor, $mes, $ano);
$excel = new Excel();
$excel->setDatos($result);
$excel->setNombreArchivo("prueba");
$excel->getExcel();
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

